package net.yzjlb.sai.mrp;

import java.io.UnsupportedEncodingException;
import java.io.File;

//文件列表属性
//路径，名字，名字长度，位置，长度
public class FileItem {
    String path;
    String filename;
    int namesize = 0;
    int offset = 0;
    int len = 0;

    FileItem(String path, String name) {
        this.path = path;
        filename = name;
        try {
            len = (int) new File(path).length();
            namesize = filename.getBytes("GBK").length;
        } catch (UnsupportedEncodingException e) {

        }
    }
}
